Fully Qualified Name: | Laminas\View\Helper\BasePath |
Extends: | AbstractHelper |
Helper for retrieving the base path.
Name | Description | Defined By |
---|---|---|
__invoke() | Returns site's base path, or file with base path prepended. | BasePath |
getView() | Get the view object | AbstractHelper |
setBasePath() | Set the base path. | BasePath |
setView() | Set the View object | AbstractHelper |
Returns site's base path, or file with base path prepended.
$file is appended to the base path for simplicity.
Parameter Name | Type | Description |
---|---|---|
$file | string|null |
Returns: string
Get the view object
Returns: null|\Renderer
Set the base path.
Parameter Name | Type | Description |
---|---|---|
$basePath | string |
Returns: self
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper